﻿<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="css/style.css"/>
	</head>
	<body>
		<%- include("./include/top.ejs") %>
		<main>
			<div class="banner"><img src="images/1.jpg"><span>勇攀高峰 砥砺前行</span></div>

			<div class="container">
				<aside>
					<h2>新闻中心</h2>
					<ul>
						<li class="<%= (cat_id==1)?'cur':'' %>"><a href="/news?cat_id=1">行业新闻</a></li>
						<li class="<%= (cat_id==2)?'cur':'' %>"><a href="/news?cat_id=2">公司活动</a></li>						
					</ul>
				</aside>
				<article class="main">					
				<h2>新闻列表</h2>
                <DIV id="news">
                    <ul>
                    <% for(var i=0;i<news.length;i++){ %>
                    <li>                    
                     <p><b><A href="/xwdetail?id=<%= news[i].id %>"><%= news[i].title %></A></b></p>
                     <p>发布日期：<%= news[i].add_time %>         
						<span class=numDate style="padding-left:40px;float:right;">点击次数：<%= news[i].click %></span> </p>                  
                 
                    <P class=desc><%- news[i].content.substr(0,300) %></P>                
                 
                    </li>
                    <% } %>
                    </ul>
                </DIV>
		</main>
		<%- include("./include/bottom.ejs") %>
	</body>
</html>